package com.express.ExpRefundRecord.bean;


import com.aqgj.util.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "exp_refund_record")
public class ExpRefundRecord implements BaseEntity {

    private String id;//id

    private String fkExpOrderId;//订单编号

    private Integer type;//退款类型（1全款退，2比例退，3二次退款）

    private BigDecimal refundMoney;//退款金额

    private BigDecimal orderMoney;//订单支付金额

    private String wxRefundNumber;//微信退款订单号

    private String aliRefundNumber;//支付宝退款订单号

    private String fkManagerId;//操作人ID

    private Date addTime;//操作时间


    @Override
    public void setId(String value){  this.id = value; }

    public void setFkExpOrderId(String fkExpOrderId) {  this.fkExpOrderId = fkExpOrderId; }

    public void setType(Integer type) {  this.type = type; }

    public void setRefundMoney(BigDecimal refundMoney) { this.refundMoney = refundMoney; }

    public void setWxRefundNumber(String wxRefundNumber) { this.wxRefundNumber = wxRefundNumber;  }

    public void setAliRefundNumber(String aliRefundNumber) { this.aliRefundNumber = aliRefundNumber; }

    public void setFkManagerId(String fkManagerId) { this.fkManagerId = fkManagerId; }

    public void setAddTime(Date addTime) {  this.addTime = addTime; }

    public void setOrderMoney(BigDecimal orderMoney) {  this.orderMoney = orderMoney; }

    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId(){
        return this.id;
    }
    @Column(name ="fk_exp_order_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getFkExpOrderId() {  return fkExpOrderId;  }
    @Column(name ="type",unique=false,nullable=true,insertable=true,updatable=true,length=2)
    public Integer getType() {  return type;  }
    @Column(name ="refund_money",unique=false,nullable=true,insertable=true,updatable=true,length=10)
    public BigDecimal getRefundMoney() {  return refundMoney;  }
    @Column(name ="order_money",unique=false,nullable=true,insertable=true,updatable=true,length=10)
    public BigDecimal getOrderMoney() { return orderMoney; }
    @Column(name ="wx_refund_number",unique=false,nullable=true,insertable=true,updatable=true,length=64)
    public String getWxRefundNumber() {  return wxRefundNumber; }
    @Column(name ="ali_refund_number",unique=false,nullable=true,insertable=true,updatable=true,length=64)
    public String getAliRefundNumber() {  return aliRefundNumber;  }
    @Column(name ="fk_manager_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getFkManagerId() {  return fkManagerId;  }
    @Column(name ="add_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public Date getAddTime() {  return addTime;  }
}
